package com.cd.university.controller.form;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;
import java.io.Serializable;

/**
 * @author 陈栋
 * @create 2021/11/22 15:26
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class UserRetrievePwdBySmsForm implements Serializable {

    /**
     * 用户的电话
     */
    @NotBlank
    @Pattern(regexp = "^[\\d\\*]{7,12}$",message = "电话验证符合规范")
    private String mobile;

    /**
     * 用户的短信验证码
     */
    @NotBlank
    private String smsCode;

    /**
     * 用户的新密码
     */
    @NotBlank
    private String newPassword;

}
